namespace csctp
{
	[[ range .]][[ if eq (len .FuncFields) 0]][[/*处理类型定义*/]]
	/// <summary>
	/// [[ .Comment ]]
	/// </summary>
	using [[ .FuncName ]] = [[ .FuncTypeName|baseType ]];
	[[ end ]][[ end ]]
	/// <summary>
	/// 启动模式
	/// </summary>
	public enum THOST_TE_RESUME_TYPE
	{
		/// <summary>
		/// 重启(重传当日数据)
		/// </summary>
		THOST_TERT_RESTART = 0,
		/// <summary>
		/// 断点续传(自上次断点续传)
		/// </summary>
		THOST_TERT_RESUME,
		/// <summary>
		/// 快速(传递连接后数据)
		/// </summary>
		THOST_TERT_QUICK
	}

	[[ range .]][[ if gt (len .FuncFields) 0]][[/*只处理枚举*/]]
	/// <summary>
	/// [[ .Comment ]]
	///</summary>
	public enum [[ .FuncName ]] : [[ if or (eq .FuncName "TThostFtdcFBTTradeCodeEnumType") (eq .FuncName "TThostFtdcVirementTradeCodeType") ]] int[[ else ]] byte[[ end ]]
	{[[ range .FuncFields ]]
		/// <summary>
		/// [[ .Comment ]]
		///</summary>[[/* 银行转帐值为 5位字串*/]]
		[[ .FieldType ]] = [[ if eq (len .FieldName) 1]] (byte)'[[ .FieldName ]]' [[ else ]][[ .FieldName ]][[ end ]],
		[[ end ]]
	}
	[[ end ]][[ end ]]
}